<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "position".
 *
 * @property integer $id
 * @property string $pos_name
 * @property string $pos_introduce
 * @property integer $pos_state
 * @property integer $pos_show
 * @property integer $settlement
 * @property integer $pos_sex
 * @property integer $pos_salary
 * @property integer $addtime
 * @property integer $classify_id
 * @property integer $pos_addtime
 * @property integer $pos_endtime
 * @property string $pos_interview
 * @property integer $pos_num
 * @property integer $pos_status
 * @property integer $account_id
 */
class Position extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'position';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['pos_introduce'], 'string'],
            [['pos_state', 'pos_show', 'settlement', 'pos_sex', 'pos_salary', 'addtime', 'classify_id', 'pos_addtime', 'pos_endtime', 'pos_num', 'pos_status', 'account_id'], 'integer'],
            [['pos_name'], 'string', 'max' => 60],
            [['pos_interview'], 'string', 'max' => 100]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'pos_name' => 'Pos Name',
            'pos_introduce' => 'Pos Introduce',
            'pos_state' => 'Pos State',
            'pos_show' => 'Pos Show',
            'settlement' => 'Settlement',
            'pos_sex' => 'Pos Sex',
            'pos_salary' => 'Pos Salary',
            'addtime' => 'Addtime',
            'classify_id' => 'Classify ID',
            'pos_addtime' => 'Pos Addtime',
            'pos_endtime' => 'Pos Endtime',
            'pos_interview' => 'Pos Interview',
            'pos_num' => 'Pos Num',
            'pos_status' => 'Pos Status',
            'account_id' => 'Account ID',
        ];
    }
}
